package io.github.lingalone.monsterauth.util;

import org.springframework.web.util.WebUtils;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created with IntelliJ IDEA.
 *
 * @author <a href="https://github.com/lingalone">lingalone</a>
 * @version 1.0.0
 * @link
 * @since 2018/7/23
 */

public class HeaderUtil {

    final static String  Authorization = "Authorization";
    final static String  Bearer = "Bearer ";

    public static void create(HttpServletResponse httpServletResponse, String token) {
        httpServletResponse.addHeader(Authorization,Bearer+token);
    }
}
